package com.qing.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qing.eduservice.entity.dto.EduTeacherDto;
import com.qing.eduservice.entity.pojo.EduTeacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qing.eduservice.entity.vo.EduTeacherVo;
import com.qing.servicebase.utils.ResponseResult;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author Yjx
 * @since 2022-09-06
 */
public interface EduTeacherService extends IService<EduTeacher> {

    /**
     * 查询所有教师
     * @return
     */
    ResponseResult queryAllTeacher();

    /**
     * 根据id删除教师
     *
     * @return
     */
    ResponseResult deleteTeacherById(String id);

    /**
     * 增加教师
     * @param eduTeacher
     * @return
     */
    ResponseResult createTeacher(EduTeacher eduTeacher);

    /**
     * 修改教师信息
     * @param eduTeacher
     * @return
     */
    ResponseResult updateTeacherById(EduTeacher eduTeacher);

    /**
     * 分页查询图书
     * @param page
     * @return
     */
    ResponseResult queryBookByPage(int page, int pageSize, EduTeacherVo eduTeacherVo);


    ResponseResult searchTeacherById(String id);

    ResponseResult pageListWeb(Page<EduTeacher> pageParam);

}
